# import logging
#
# from langchain_core.messages import HumanMessage
# from langchain_ollama import ChatOllama
#
# class Agent:
#     def __init__(self,config,model):
#         logging.info("Initializing Agent of key Content Extraction")
#         self.model = None
#         self.ollama_url = config["ollama"]["url"]
#         self.model = model
#         self.client = ChatOllama(
#             base_url=self.ollama_url,
#             model=self.model
#         )
#
#     def extract_to_markdown(self):
#         logging.info("Extracting to Markdown")
#
#
#     def send_msg(self,msg):
#         resp = self.client.invoke([HumanMessage(content=msg)])
#         return resp.contentQ